﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace LogModel
{
    [DataContract]
    public class ExceptionRecord
    {
        [DataMember]
        public int id { get; set; }

        [DataMember]
        public string name { get; set; }

        [DataMember]
        public int pid { get; set; }

        [DataMember]
        public DateTime makeTime { get; set; }

        [DataMember]
        public string source { get; set; }

        [DataMember]
        public string position { get; set; }

        [DataMember]
        public string stackTrace { get; set; }

        [DataMember]
        public string processDetails { get; set; }

        [DataMember]
        public string message { get; set; }

        public ExceptionRecord()
        {
            id = 0;
            name = "";
            pid = 0;
            makeTime = DateTime.Now;
        }
    }
}
